<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('AdminLogs/clientBug')}">前端bug文件</a></li>
        <!--<li><a href="{:url('Developer/setRedisKey')}">添加Redis Key</a></li>-->
        <!--<li><a href="{:url('PlatformConfig/expand')}">扩展字段设置</a></li>-->
    </ul>
    <table class="table table-hover table-bordered margin-top-20">
        <thead>
        <tr>
            <td>文件列表</td>
            <td align="center" width="10%">操作</td>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td><b>当前目录上层键值：{$dir}</b></td>
            <td></td>
        </tr>
        <notempty name="redisDir">
            <tr>
                <td align="left" colspan="3">
                    <a href="{:url('redisManage',array('redis_dir' => $upDir))}"><img src="__STATIC__/images/folder-closed.gif"/>上一层目录</a>
                </td>
            </tr>
        </notempty>
        <foreach name="data" item="vo">
            <php>
                if(is_dir($path.$dir."/".$vo)){
                    $type = "dir";
                }else{
                    $type = "log";
                }
            </php>
            <tr>
                <td align="left">
                    <img src="__STATIC__/images/ext/{$type}.gif"/>
                    <if condition="$type == 'dir'">
                        <a href="{:url('clientBug',array('dir' => $vo,'up_dir' => $dir))}">{$vo}</a>
                        <else/>
                        {$vo}
                    </if>
                </td>
                <td align="center">
                    <if condition="$type == 'log'">
                        <a class="btn btn-xs btn-primary" href="{:url('downloadBugFile',array('dir' => $dir, 'file' => $vo))}">下载</a>
                    <else/>
                        --
                    </if>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
</div>
<include file="public@footer" />